<div class="section">
        <?php
        $this->widget('AdminBankMenu', array(
            'bank_id' => $model->id,
            'bank_title' => $model->title,
        ));
        ?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Добавление новости')?></h2>
				<span class="hide"></span>
			</div>
<div class="content forms">
             <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'user-form',
                            'enableAjaxValidation'=>true,
                            'action'=>'',
                            'method'=>'post',
                    )); ?>
    <?=$form->errorSummary($user); ?>
    <table>
        <tr>
            <td>
                        <div class="line1" style="clear:both;">
                                <div style="float:left;">
                                    <div class="name_param"><?=Yii::t('app', 'ФИО пользователя')?>:</div>
                                    <?=CHtml::activeTextField($user,'lastname',array('class'=>'medium')); ?>
                                    <?php  echo $form->error($user,'lastname'); ?>
                                </div> 
                                <div style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
                                <div style="float:left;">
                                    <div class="name_param"><?=Yii::t('app', 'E-mail')?>:</div>
                                    <?=CHtml::activeTextField($user,'username',array('class'=>'medium')); ?>
                                    <?php  echo $form->error($user,'username'); ?>
                                </div>
                        </div>
             </td>
             <td rowspan="4" width="140" valign="top">
                 Yandex Map gose here
             </td>
         </tr>
         <tr>
             <td>
                        <div class="line1" style="clear:both;">
                            <div style="float:left;">
                                <div class="name_param"><?=Yii::t('app', 'Отделение')?>:</div>                           
                                <?=CHtml::activeListBox($user, 'point_id', CHtml::listData($bankPoints, 'id', 'title'), array('empty'=>'','id'=>'select_adjustment','class'=>'jcalendar-select-val')); ?>
                                <?php echo $form->error($user,'point_id'); ?>
                            </div>  
                        </div>
             </td>
         </tr>
         <tr>
             <td>
                        <div class="line1" style="clear:both;">
                            <div style="float:left;">
                                <div class="name_param"><?=Yii::t('app', 'Пароль')?>:</div>
                                <?=CHtml::activePasswordField($user,'password',array('class'=>'medium')); ?>
                                <?php  echo $form->error($user,'password'); ?>
                            </div>
                            <div style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
                            <div style="float:left;">
                                <div class="name_param"><?=Yii::t('app', 'Подтвердить пароль')?>:</div>
                                <?=CHtml::activePasswordField($user,'passwordRepeat',array('class'=>'medium')); ?>
                                <?php  echo $form->error($user,'passwordRepeat'); ?>
                            </div>
                        </div>
             </td>
         </tr>
         <tr>
             <td>
                 
                        <div class="line1"  style="clear:both;">
                            <div style="float:left;">
                                <div class="name_param"><?=Yii::t('app', 'Должность')?>:</div>
                                <?=CHtml::activeTextField($user,'user_post',array('class'=>'medium')); ?>
                                <?php  echo $form->error($user,'user_post'); ?>
                            </div>
                            <div style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
                            <div style="float:left;">
                                <div class="name_param"><?=Yii::t('app', 'Контактный телефон')?>:</div>
                                <?=CHtml::activeTextField($user,'phone',array('class'=>'medium')); ?>
                                <?php  echo $form->error($user,'phone'); ?>
                            </div>
                        </div>
            </td>
        </tr>
    </table>
    <!---------------------------------------------->
        <div class="line button">
            <button type="submit" class="green medium"><span><?=(($user->id)?'Сохранить':'Добавить')?></span></button>
            <button type="submit" onclick="window.location.replace('<?=$this->createUrl("/banks/users/id/$model->id")?>');return false; " class="blue medium"><span>Отмена</span></button>

            <?php if ($user->id):?>
                <button type="submit" name='delbutton' style="width: 180px; color:white;" class="red medium" value="<?php print Yii::t('app','Удалить пользователя'); ?>"><?php print Yii::t('app','Удалить пользователя'); ?></button>
                <input type="checkbox" id="check_del" name="check_del"> <span><?php print Yii::t('app','подтвердить удаление'); ?></span>
            <?php endif?>
        </div>

    </div>

    <?$this->endWidget(); ?>

			</div>
		</div>